﻿{{include 'admin/public/header.html'}}


<div class="main-container" id="main-container">
	<div class="main-container-inner">

		{{include 'admin/public/nav.html'}}


		<div class="main-content">


			<div class="page-content">

				<div class="page-header">
					<h1>
						禁用用户列表
					</h1>
				</div>
				{{if list.length>0}}
						
				
				<!--表格-->

					<div class="table-responsive">


						<table id="sample-table-1" class="table table-striped table-bordered table-hover center">
							<thead>
								<tr>

									<th class="center">用户名</th>
									<th class="center">姓名</th>
									<th class="center">地址</th>
									<th class="center">手机号</th>
									<th class="center">年费</th>
									<th class="center">设备数量</th>



									<th class="center">
										<i class="icon-time bigger-110 hidden-480"></i>
										最后登录
									</th>
								
									<th width="100px;" class="center">操作</th>
								</tr>
							</thead>

							<tbody>

								{{each list}}
								<tr class="">


									<td>
										{{$value.username}}
									</td>

									<td>
										{{$value.name}}
									</td>

									<td>
										{{$value.address}}
									</td>

									<td>
										{{$value.phone}}
									</td>


									<td>
										{{$value.year_fee}}
									</td>

									<td>
										{{$value.device_num}}
									</td>

									<td>
										{{$value.last_time | dateFormat}}
									</td>								
									<td>
											<div class="visible-md visible-lg hidden-sm hidden-xs btn-group center">

											
											<a class="btn btn-primary btn-xs" onclick="return confirm('确定要恢复此管理员吗？');"
											href="/admin/manage/recovery?id={{@$value._id}}">恢复</a>

											<a class="btn btn-danger btn-xs" style="margin-left:5px;"
											onclick="return confirm('删除后将无法恢复！您确定要删除吗?');"
											href="/admin/manage/delete?id={{@$value._id}}">删除</a>

										</div>

									</td>
								</tr>

								{{/each}}

							</tbody>
						</table>
					</div>

				{{else}}

					<p class="center">暂时没有被禁用的用户</p>

				{{/if}}
			</div>
		</div><!-- /.main-content -->

	</div><!-- /.main-container-inner -->

</div><!-- /.main-container -->

</body>

</html>